-- CALC_BISHOP_MP

-- 计算当前魔法值
return function(bishop, fix)
    local mp = bishop.dbase:query("mp", 0);

    -- 加成
    local prop = PropM.combine(bishop, "attrib2", "max_mp");
    mp = PropM.apply(prop, mp);

    if fix then
        mp = iif(mp < 0, 0, mp);
    end

    return mp;
end
